package com.cdcas.map;

import java.util.HashMap;
import java.util.Map;

public class MapDemo {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("username","admin");
        map.put("username","testAdmin");
        map.put("password","123456");
        System.out.println(map);

        System.out.println("调用get方法=" + map.get("username"));
    }
}
